home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / isamin.z / isamin
Encoding:
Text File  |  2002-10-03  |  7.9 KB  |  199 lines

  1.  
  2.  
  3.  
  4. IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))                                                          IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      IIIISSSSAAAAMMMMIIIINNNN, IIIIDDDDAAAAMMMMIIIINNNN - Searches a vector for the first occurrence of the
  10.      minimum absolute value
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      Single precision
  14.  
  15.           Fortran:
  16.                iiiinnnntttteeeeggggeeeerrrr IIIISSSSAAAAMMMMIIIINNNN
  17.                iiiinnnntttteeeeggggeeeerrrr _i_n_d_e_x
  18.                _i_n_d_e_x = IIIISSSSAAAAMMMMIIIINNNN ((((_n,,,, _x,,,, _i_n_c_x))))
  19.  
  20.           C/C++:
  21.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  22.                iiiinnnntttt IIIISSSSAAAAMMMMIIIINNNN ((((iiiinnnntttt _n,,,, ffffllllooooaaaatttt *_x,,,, iiiinnnntttt _i_n_c_x))));;;;
  23.  
  24.      Double precision
  25.  
  26.           Fortran:
  27.                iiiinnnntttteeeeggggeeeerrrr IIIIDDDDAAAAMMMMIIIINNNN
  28.                iiiinnnntttteeeeggggeeeerrrr _i_n_d_e_x
  29.                _i_n_d_e_x = IIIIDDDDAAAAMMMMIIIINNNN ((((_n,,,, _x,,,, _i_n_c_x))))
  30.  
  31.           C/C++:
  32.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  33.                iiiinnnntttt IIIIDDDDAAAAMMMMIIIINNNN ((((iiiinnnntttt _n,,,, ddddoooouuuubbbblllleeee *_x,,,, iiiinnnntttt _i_n_c_x))));;;;
  34.  
  35. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  36.      These routines are part of the SCSL Scientific Library and can be loaded
  37.      using either the ----llllssssccccssss or the ----llllssssccccssss____mmmmpppp option.  The ----llllssssccccssss____mmmmpppp option
  38.      directs the linker to use the multi-processor version of the library.
  39.  
  40.      When linking to SCSL with ----llllssssccccssss or ----llllssssccccssss____mmmmpppp, the default integer size is
  41.      4 bytes (32 bits). Another version of SCSL is available in which integers
  42.      are 8 bytes (64 bits).  This version allows the user access to larger
  43.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  44.      by using the ----llllssssccccssss____iiii8888 option or the ----llllssssccccssss____iiii8888____mmmmpppp option. A program may use
  45.      only one of the two versions; 4-byte integer and 8-byte integer library
  46.      calls cannot be mixed.
  47.  
  48.      The C and C++ prototypes shown above are appropriate for the 4-byte
  49.      integer version of SCSL. When using the 8-byte integer version, the
  50.      variables of type iiiinnnntttt become lllloooonnnngggg lllloooonnnngggg and the <<<<ssssccccssssllll____bbbbllllaaaassss____iiii8888....hhhh>>>> header
  51.      file should be included.
  52.  
  53. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  54.      IIIISSSSAAAAMMMMIIIINNNN/IIIIDDDDAAAAMMMMIIIINNNN searches a real vector for the first occurrence of the
  55.      minimum absolute value.
  56.  
  57.      IIIISSSSAAAAMMMMIIIINNNN returns the first index _i such that
  58.  
  59.           |x | = MIN |x | : j = 1, ..., n
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))                                                          IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))
  71.  
  72.  
  73.  
  74.             i          j   (j = 0, ..., n-1 for C/C++)
  75.  
  76.  
  77.  
  78.      where _x_j is an element of a real vector.
  79.  
  80.      See the NOTES section of this man page for information about the
  81.      interpretation of the data types described in the following arguments.
  82.  
  83.      These functions have the following arguments:
  84.  
  85.      _i_n_d_e_x Integer.  (output)
  86.            First index of minimum absolute value.
  87.  
  88.      _n     Integer.  (input)
  89.            Number of elements to process in the vector to be searched.  If _n
  90.            <= 0, these routines return 0 (-1 for C/C++).
  91.  
  92.      _x     Array of dimension (_n-1) * |_i_n_c_x| + 1.  (input)
  93.            IIIISSSSAAAAMMMMIIIINNNN: Single precision array.
  94.            IIIIDDDDAAAAMMMMIIIINNNN: Double precision array.
  95.  
  96.            Array _x contains the vector to be searched.
  97.  
  98.      _i_n_c_x  Integer.  (input)
  99.            Increment between elements of _x.
  100.  
  101. NNNNOOOOTTTTEEEESSSS
  102.      When scanning backward (_i_n_c_x < 0), each routine starts at the end of the
  103.      vector and moves backward, as follows:
  104.  
  105.      Fortran:
  106.  
  107.           x(1 - incx * (n-1)), x(1 - incx * (n-2)), ..., x(1)
  108.  
  109.  
  110.      C/C++:
  111.  
  112.           x[-incx * (n-1)], x[incx * (n - 2)], ..., x(0)
  113.  
  114.  
  115.      The largest absolute value is:
  116.  
  117.      Fortran:
  118.  
  119.           |x(1 + incx * (index-1))| when incx > 0
  120.  
  121.           |x(1 - incx * (n-index))| when incx < 0
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))                                                          IIIISSSSAAAAMMMMIIIINNNN((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      C/C++:
  141.  
  142.           |x[incx * (index-1)]| when incx > 0
  143.  
  144.           |x[-incx * (n-index)]| when incx < 0
  145.  
  146.  
  147.      These routines are Level 1 Basic Linear Algebra Subprograms (Level 1
  148.      BLAS).
  149.  
  150.    DDDDaaaattttaaaa TTTTyyyyppppeeeessss
  151.      The following data types are described in this documentation:
  152.  
  153.           TTTTeeeerrrrmmmm UUUUsssseeeedddd                     DDDDaaaattttaaaa ttttyyyyppppeeee
  154.  
  155.      Fortran:
  156.  
  157.           Array dimensioned _n           xxxx((((nnnn))))
  158.  
  159.           Integer                       IIIINNNNTTTTEEEEGGGGEEEERRRR (IIIINNNNTTTTEEEEGGGGEEEERRRR****8888 for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  160.  
  161.           Single precision              RRRREEEEAAAALLLL
  162.  
  163.           Double precision              DDDDOOOOUUUUBBBBLLLLEEEE PPPPRRRREEEECCCCIIIISSSSIIIIOOOONNNN
  164.  
  165.      C/C++:
  166.  
  167.           Array dimensioned _n           xxxx[[[[_n]]]]
  168.  
  169.           Integer                       iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  170.  
  171.           Single precision              ffffllllooooaaaatttt
  172.  
  173.           Double precision              ddddoooouuuubbbblllleeee
  174.  
  175. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  176.      IIIINNNNTTTTRRRROOOO____SSSSCCCCSSSSLLLL(3S), IIIINNNNTTTTRRRROOOO____BBBBLLLLAAAASSSS1111(3S), IIIISSSSAAAAMMMMAAAAXXXX(3S)
  177.  
  178.      IIIINNNNTTTTRRRROOOO____CCCCBBBBLLLLAAAASSSS(3S) for information about using the C interface to Fortran 77
  179.      Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic
  180.      Linear Algebra Subprograms Technical Forum.
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                                                                         PPPPaaaaggggeeee 3333
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.